package com.ddhcodeduck.common.constant;

import lombok.experimental.UtilityClass;

/**
 * 用户状态常量
 */
@UtilityClass
public class UserStatusConstant {

    /**
     * 启用状态
     */
    public static final String ACTIVE = "ACTIVE";

    /**
     * 禁用状态
     */
    public static final String DISABLED = "DISABLED";


    /**
     * 获取所有支持的状态字符串数组（可用于校验）
     */
    public static String[] getAllStatuses() {
        return new String[]{ACTIVE, DISABLED};
    }

    /**
     * 判断是否为合法状态
     */
    public static boolean isValidStatus(String status) {
        return ACTIVE.equals(status) || DISABLED.equals(status);
    }
}
